from TollAll import tool
from net_project_tools.XinArticlePage import XinArticlePage
from page.net_project_tools.net_article_page import NetArticlePage
import user_data
import unittest
import warnings
from time import sleep


class XinArticleTest(unittest.TestCase,tool):

    def setUp(self):
        warnings.simplefilter('ignore', ResourceWarning)

    def tearDown(self):
        self.page.logout()

    def test_net_article(self):
        """文章工具"""
        self.Worksend()

        # self.page = XinArticlePage()
        # self.page.login(*user_data.Xinxi_project_admin)
        # self.page.enter_project()
        # self.page.enter_tools('文章')
        # self.page.release_article()
        # # sleep(10)
        # self.page.view_comment_article()


if __name__ == '__main__':
    unittest.main()
